package com.ymttest.datadriver;

import org.json.JSONObject;

import com.ymttest.utils.JsonBeanHelper;

public interface ThirdPartData {
	public static JSONObject getScenarioModelByExcel(String scenario,String scenarioSummary,String modelName){
		JSONObject ret = null;
		if (scenarioSummary.equals("报名参加活动")){
			ret = JsonBeanHelper.getJsonBean("com.ymatou.evt.sellerservice/ApplyActivityProduct/ApplyProductInActivityTpl.json");
		}else if(scenarioSummary.equals("登录客服后台")){
			ret = JsonBeanHelper.getJsonBean("com.ymatou.evt.sellerservice/ApplyActivityProduct/login.json");
		}else if(scenarioSummary.equals("审核通过报名")){
			ret = JsonBeanHelper.getJsonBean("cn.ymatou.activityadmin/AuditApproveCall/auditapprovecalltpl.json");
		}else{
			ret = JsonBeanHelper.getJsonBean("com.ymatou.iapi.sellerproduct/AddNewSellerProduct/AddNewProductTpl.json");
		}
		return ret;
		
	}
	public static String getApiByExcel(String scenarioSummary){
		String ret = "";
		if (scenarioSummary.equals("报名参加活动")){
		 ret = "/ActivityForSeller/ApplyActivityProduct";
		}else if(scenarioSummary.equals("登录客服后台")){
			 ret = "/Login";
		}else if(scenarioSummary.equals("审核通过报名")){
			ret = "/JsonData/AuditApprove";
		}
		else{
		ret =  "/api/SellerProduct/AddNewSellerProduct";
		}
		return ret;
		
	}
	
	public static String getHostByExcel(String scenario){
		String ret = "";
		if (scenario.equals("活动相关")){
			ret = "sellerservice.evt.ymatou.com";
		}else if(scenario.equals("Admin相关")){
			ret = "admin.ymatou.cn";
		}else if(scenario.equals("活动审核")){
			ret = "activityadmin.ymatou.cn";
		}else{
			ret = "sellerproduct.iapi.ymatou.com";
		}
		return ret;
	}
}
